home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 June (IDG) / Macworld_June_2000.iso / Shareware World / Utilities / Databasing / Troi-File-Plug-in2.0 / SelectFile.fp3 (.txt) < prev    next >
Encoding:
FileMaker Pro Database  |  2000-04-03  |  43.0 KB  |  205 lines  |  [FMP3/FMP3]

  1.  Copyright 1984-1998 FileMaker, Inc. 
  2. HBAM2016AUG95
  3. Pro 3.0
  4. HBAM3016AUG95@
  5. Pro 3.0 - 4.0F!
  6. Sunday
  7. Monday
  8. Tuesday
  9.     Wednesday
  10. Thursday
  11. Friday
  12. Saturday
  13. January
  14. February
  15. March
  16. April
  17. August
  18.     September
  19. October
  20. November
  21. December
  22. 1st Quarter
  23. 2nd Quarter
  24. 3rd Quarter
  25. 4th Quarter
  26. 4/3/00
  27. _GERRORCODE
  28. _GINITIALFOLDER
  29. _GSELECTEDFILE
  30. _gSelectedFileB
  31. _gInitialFolderB
  32. _gErrorCodeB
  33. menuB
  34. No FileType Filtering
  35. Get FileSpec Dialog
  36. *Get FileSpec Dialog (using Initial Folder)
  37. Select Initial Folder
  38. +Save FileSpec Dialog (using Initial Folder)
  39. ------- OTHER EXAMPLES --------
  40. %ContentsDialog (using Initial Folder)
  41. 3Get FileSpec Dialog (using Initial Folder/NoPrompt)
  42. (Save FileSpec Dialog (no Initial Folder)
  43. --------------
  44.     open file
  45. Get FileSpec Dialog
  46. A0This script will get let the user select a file.BaNo initial folder is given, so this will start at the last folder (Mac) or at the root directory.
  47. Select FileE
  48. Select File DialogF0This file shows how to let a user select a file.G
  49.  2000 Troi AutomatiseringH
  50. Select Default FolderN
  51. Path of Selected FileP
  52. DefaultFolderQN2) File Selection using an initial folder as starting point for the selection.T
  53. 2a) Select the starting point:U
  54. 2b) Select a file:VHDo this a few times. The dialog will always start at the default folder.W
  55. 1) Simple SelectionX
  56. If you cancel $$-1 is returnedY0This must be a full path ending with 
  57. ZQDo this a few times. Note that the dialog will start at the last selected folder.[
  58. Close Demo File]    features!^!Select File (with initial folder)_
  59. 2c) Select a file for saving:`
  60. Save File (with initial folder)a
  61. _gErrorCode
  62. A*Get FileSpec Dialog (using Initial Folder)
  63. A;Let the user select a file. Starts from the initial folder.B!
  64.  = ""
  65. Cancel
  66. Please specify an initial folder first.D
  67. |("TrFile-Get FileSpec Dialog"
  68.  "Please select a file:|" &
  69. TrFile-Get FileSpec Dialog
  70. Please select a file:|
  71.  2) <> "$$"
  72. Make it a full path...G]
  73. |("TrFile-FileSpec To FullPath"
  74. TrFile-FileSpec To FullPath
  75. Select Initial Folder
  76. |("TrFile-Get FileSpec Dialog"
  77.  "Please select a file:")
  78. TrFile-Get FileSpec Dialog
  79. Please select a file:|D;
  80.  2) <> "$$"
  81. Make it a full pathF]
  82. |("TrFile-FileSpec To FullPath"
  83. TrFile-FileSpec To FullPath
  84. ------- OTHER EXAMPLES --------
  85. A    open file
  86. A3Get FileSpec Dialog (using Initial Folder/NoPrompt)
  87. A<Let the user select a file. Starts from the initial  Folder.B!
  88.  = ""
  89. Cancel
  90. Please specify an initial folder first.
  91. This script will show a dialog, which asks for the initial folder. This initial folder is used by the other Dialog as the starting point.B
  92. |("TrFile-SelectFolderDialog"
  93.  "-unused|Select the default folder:|" & 
  94. TrFile-SelectFolderDialog
  95. #-unused|Select the default folder:|
  96.  2) <> "$$"
  97. |("TrFile-FileSpec To FullPath"
  98. TrFile-FileSpec To FullPath
  99. No FileType Filtering
  100. A4This script will make sure that all files in the ...B%... File Selection Dialogs are shown.CN
  101. |("TrFile-SetDefaultType"
  102. TrFile-SetDefaultType
  103. A%ContentsDialog (using Initial Folder)
  104. A1This is a variant of the samples on the layout...BGLet the user get the contents of a file. Start from the default Folder.C!
  105.  = ""
  106. Cancel
  107. Please specify a Default Folder first.
  108. |("TrFile-Get FileSpec Dialog"
  109.  "|" &
  110. TrFile-Get FileSpec Dialog
  111.  2) <> "$$"
  112. |("TrFile-FileSpec To FullPath"
  113. TrFile-FileSpec To FullPath
  114. A+Save FileSpec Dialog (using Initial Folder)
  115. A&Let the user select a file for Saving.B
  116. Starts from the initial Folder.C#The resulting FileSpec is returned.D+...In this example we alse create the file.E!
  117.  = ""
  118. Cancel
  119. Please specify an initial folder first.
  120. |("TrFile-ContentsDialog"
  121.  "Select a file to get the contents from|" & 
  122. TrFile-ContentsDialog
  123. 'Select a file to get the contents from|
  124.  2)  = "$$"
  125. --------------
  126. A(Save FileSpec Dialog (no Initial Folder)
  127. A&Let the user select a file for Saving.B
  128. Starts from the initial Folder.C#The resulting FileSpec is returned.D+...In this example we alse create the file.E!
  129.  = ""
  130. Cancel
  131. Please specify an initial folder first.
  132. |("TrFile-Save FileSpec Dialog"
  133.  "Please select a file to save:|defaultname.txt|" & 
  134. TrFile-Save FileSpec Dialog
  135. .Please select a file to save:|defaultname.txt|
  136.  2 ) = "$$"
  137. Create the file...KI
  138. |("TrFile-CreateFile"
  139. TrFile-CreateFile
  140. Set the default spec...NY
  141. |("TrFile-SetDefaultFileSpec"
  142. TrFile-SetDefaultFileSpec
  143. Write a bit of data in it...
  144. |("TrFile-SetContents"
  145.  "Created on " & 
  146. )) & " as a demo file by the Troi File plug-in 2.0.   See <http://www.troi.com/> for more information.")
  147. TrFile-SetContents
  148. Created on     
  149. ` as a demo file by the Troi File plug-in 2.0.   See <http://www.troi.com/> for more information.
  150. Make it a full path...
  151. |("TrFile-FileSpec To FullPath"
  152. TrFile-FileSpec To FullPath
  153.     Helvetica
  154. Geneva
  155. Times New Roman
  156. |("TrFile-Save FileSpec Dialog"
  157.  "Please select a file to save:|defaultname.txt")
  158. TrFile-Save FileSpec Dialog
  159. -Please select a file to save:|defaultname.txt|H;
  160.  2 ) <> "$$"
  161. Create the file...JI
  162. |("TrFile-CreateFile"
  163. TrFile-CreateFile
  164. Set the default spec...MY
  165. |("TrFile-SetDefaultFileSpec"
  166. TrFile-SetDefaultFileSpec
  167. Write a bit of data in it...
  168. |("TrFile-SetContents"
  169.  "Created on " & 
  170. )) & " as a demo file by the Troi File plug-in 2.0.
  171. See <http://www.troi.com/> for more information.")
  172. TrFile-SetContents
  173. Created on     
  174. _ as a demo file by the Troi File plug-in 2.0.
  175. See <http://www.troi.com/> for more information.
  176. Make it a full path...Q]
  177. |("TrFile-FileSpec To FullPath"
  178. TrFile-FileSpec To FullPath
  179. k{k|w
  180. [=g\gYg\.T
  181. g\c[_]c\ozc\g\[]g\c[o{c[g\[\g\24
  182. OYBw*
  183. _ZkZ[ZkZ_ZkZOZkZ[ZkZ_Zw
  184. k]k]{
  185. g\g=5
  186. 5sF6g]F
  187. o|g]k}
  188. GIFfAgGIF87a
  189.     k]k]s
  190. o|g]{
  191. k]k]w
  192. Nv_:5
  193. g=g<_;w
  194. o\o}5
  195. k=JW1
  196. o\g{1
  197. g=k]5
  198. NvkZ2
  199. s}g]k\
  200. g=g<w
  201. g}k=o
  202. o^k{k}
  203. g]k=k
  204. g}k]o}
  205.